package org.xg.study.pd.test;

import org.junit.Test;
import org.xg.study.pd.channel.Pay;
import org.xg.study.pd.channel.WXPay;
import org.xg.study.pd.channel.ZFBPay;
import org.xg.study.pd.mode.PayFaceMode;
import org.xg.study.pd.mode.PayFingerPrintMode;

import java.math.BigDecimal;

/**
 * @author CMG
 * @version 1.0
 * @cLassName ApiTest7_02
 * @description
 * @date 2021/9/14 15:39
 **/
public class ApiTest7_02 {
    @Test
    public void test_pay(){
        System.out.println("\r\n模拟测试场景： 微信支付、人脸方式");
        Pay wxPay = new WXPay(new PayFaceMode());
        wxPay.transfer("weixin_00123125154","1000012312515",new BigDecimal(100));

        System.out.println("\r\n模拟测试场景： 支付宝支付、指纹方式");
        Pay zfbPay = new ZFBPay(new PayFingerPrintMode());
        zfbPay.transfer("jlu019249153253","1000002523u1895",new BigDecimal(100));
    }
}
